var url = window.location.href

function getCation(url, param) {
    var inde = url.lastIndexOf(param)
    let len = param.length
    url = url.substring(inde, inde+len)
    return url
}